// const assert = require("assert");
// import lib from "./lib/isRangeMatch";
const shortcode = require("../lib/shortcode.js");

test("[0, 1], [2, 3] not match", () => {
  expect(shortcode.isRangeMatch([0, 1], [2, 3])).toBe(false);
});
test("[2, 3], [0, 1] not match", () => {
  expect(shortcode.isRangeMatch([2, 3], [0, 1])).toBe(false);
});

test("[1, 2], [1, 0] match", () => {
  expect(shortcode.isRangeMatch([1, 2], [0, 1])).toBe(true);
});

test("[0, 1], [1, 2] match", () => {
  expect(shortcode.isRangeMatch([0, 1], [1, 2])).toBe(true);
});

// https://www.jestjs.cn/docs/getting-started
